// 企业

import request, { singleRequest } from '@/utils/request'

// 获取快递供应商列表
export const getExpressSupplier = async (data = {}) => {
    const res = await singleRequest({
        url: '/supplier/list',
        method: 'post',
        data,
    })
    return res
}
// 快递供应商新增/编辑
export const saveExpressSupplier = async (data = {}) => {
    const res = await request({
        url: '/supplier/update',
        method: 'post',
        data,
    })
    return res
}
// 获取快递追踪列表
export const getExpressTrack = async (data = {}) => {
    const res = await request({
        url: '/track/record',
        method: 'post',
        data,
    })
    return res
}
// 获取快递追踪列表
export const trackDetail = async (data = {}) => {
    const res = await request({
        url: '/track/itemDetail',
        method: 'get',
        params: data,
    })
    return res
}
// 快递追踪列表刷新
export const trackRefresh = async (data = {}) => {
    const res = await request({
        url: '/track/refresh',
        method: 'get',
        params: data,
    })
    return res
}
// 快递追踪编辑
export const saveExpressTrack = async (data = {}) => {
    const res = await request({
        url: '/track/supplier',
        method: 'put',
        data,
    })
    return res
}
